<h1>Listing muonsaches</h1>

<table>
  <tr>
    <th>Studentid</th>
    <th>Bookid</th>
    <th>Thoigianmuon</th>
    <th>Thoigiantra</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @muonsaches.each do |muonsach| %>
  <tr>
    <td><%= muonsach.studentId %></td>
    <td><%= muonsach.bookId %></td>
    <td><%= muonsach.thoigianmuon %></td>
    <td><%= muonsach.thoigiantra %></td>
    <td><%= link_to 'Show', muonsach %></td>
    <td><%= link_to 'Edit', edit_muonsach_path(muonsach) %></td>
    <td><%= link_to 'Destroy', muonsach, confirm: 'Are you sure?', method: :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Muonsach', new_muonsach_path %>
